if __name__ == '__main__':
    # print("1 * 1 = 1")
    # for i in range(1, 10):
    #     # print("1 * 1 = 1", end=" ")
    #     # print("{} * {} = {}".format(1, 9, 1 * 9), end=" ")
    #     print("{} * {} = {}".format(i, 9, i * 9), end=" ")

    # for j in range(1, 10):
    #     for i in range(1, 10):
    #         # print("1 * 1 = 1", end=" ")
    #         # print("{} * {} = {}".format(1, 9, 1 * 9), end=" ")
    #         print("{} * {} = {}".format(i, 9, i * 9), end=" ")
    #     print()
    # for j in range(1, 10):
    #     for i in range(1, 10):
    #         # print("1 * 1 = 1", end=" ")
    #         # print("{} * {} = {}".format(1, 9, 1 * 9), end=" ")
    #         print("{} * {} = {}".format(i, j, i * j), end=" ")
    #     print()

    for j in range(1, 10):
        for i in range(1, j + 1):
            # print("1 * 1 = 1", end=" ")
            # print("{} * {} = {}".format(1, 9, 1 * 9), end=" ")
            print("{} * {} = {}".format(i, j, i * j), end=" ")
        print()
